package com.design.structure.facade.atguigu;

/**
 * @ProjectName: design
 * @Package: com.design.structure.facade.atguigu
 * @ClassName: Popcorn
 * @Author: shenaiguo
 * @Description: 爆米花机
 * @Date: 2020/9/8 0008 22:54
 */
// 步骤 2
public class Popcorn {
    private static Popcorn instance = new Popcorn();


    public static Popcorn getInstance() {
        return instance;
    }


    public void on() {
        System.out.println(" popcorn on ");
    }

    public void off() {
        System.out.println(" popcorn ff ");
    }


    public void pop() {
        System.out.println(" popcorn is poping	");
    }
}
